package com.code.day21;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;

public class Demo04properties {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        FileInputStream fileInputStream = new FileInputStream("D:\\java-code\\java-full-stack\\01-java-base\\src\\com\\code\\day21\\file\\demo03.properties");
        properties.load(fileInputStream);

        Set<String> set = properties.stringPropertyNames();
        for (String s : set) {
        String value = properties.getProperty( s);
            System.out.println(s + "=" + value);
        }
    }
}
